<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
    <script>
      wx.config({
        beta: true,
        debug: true,
        appId: "your_corp_id",
        timestamp: "your_corp_id",
        nonceStr: "your_nonceStr",
        signature: "your_signature",
        jsApiList: ["getLocation"],
      });

      wx.ready(function () {
        console.log("Weixin SDK is ready");
        wx.checkJsApi({
          jsApiList: ["getLocation"],
          success: function (res) {
            console.log(res);
          },
        });
      });

      wx.error(function (res) {
        console.error("Weixin SDK error:", res);
      });
    </script>
  </body>
</html>
